package com.example.base.net

import com.blankj.utilcode.util.SPUtils
import okhttp3.Interceptor
import okhttp3.Response

/**
 * 请求头拦截器---OKHttp
 *
 */
class HeaderParkInterceptor:Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {

        val request = chain.request().newBuilder()
            .addHeader("accessId","556f679bebe94c2baaedbbcc6a98ad6d")
            .addHeader("token","eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJ6bGwifQ.7qz4ACxRY7OITWmxmPYFFbDFM2seQmeTmk8k9MT2ajE")
            .build()
        return chain.proceed(request)
    }
}